using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Workflow2211A.Domain.Entities;

namespace Workflow2211A.Domain.RBAC
{
    /// <summary>
    /// 用户角色表
    /// </summary>
    [Table("UserRoles")]
    public class UserRolesModel : BaseEntity
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Required]
        public long UserId { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        [Required]
        public long RoleId { get; set; }
    }
}